package com.ceshiren.test.houduankaifa.controller;


import com.ceshiren.test.houduankaifa.service.StudentService;
import com.ceshiren.test.houduankaifa.util.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "StudentController: 学生信息管理controller")
@RequestMapping("/sutdent")
@RestController
public class StudentController {


    @Autowired
    StudentService studentService;


    @GetMapping(value = "/findAll",produces = "application/json")
    public Result findAll(){
        return studentService.findAll();
    }


}
